// ==UserScript==
// @name           Footballguys Weekly Cheatsheet Quick Position Select
// @namespace      http://glenncarr.com/greasemonkey/footballguys
// @include        http://subscribers.footballguys.com/myfbg/myweeklycheatsheet.php*
// $LastChangedRevision: 343 $
// $LastChangedDate: 2007-10-26 16:34:42 +0000 (Fri, 26 Oct 2007) $
// ==/UserScript==

(function() {

var select = document.evaluate("//select[@name='pos']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); 
if ( select.snapshotLength == 0 )
    return;
select = select.snapshotItem( 0 );    

var button = document.evaluate("//input[@type='submit'][@value='View Cheatsheet']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); 
if ( button.snapshotLength == 0 )
    return;
button = button.snapshotItem( 0 );

select.addEventListener( 'change', function() { this.parentNode.submit(); }, false );

})();